package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.ProfessionDao;
import io.renren.modules.generator.entity.ProfessionEntity;
import io.renren.modules.generator.service.ProfessionService;



@Service("professionService")
public class ProfessionServiceImpl implements ProfessionService {
	@Autowired
	private ProfessionDao professionDao;
	
	@Override
	public ProfessionEntity queryObject(String code){
		return professionDao.queryObject(code);
	}
	
	@Override
	public List<ProfessionEntity> queryList(Map<String, Object> map){
		return professionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return professionDao.queryTotal(map);
	}
	
	@Override
	public void save(ProfessionEntity profession){
		professionDao.save(profession);
	}
	
	@Override
	public void update(ProfessionEntity profession){
		professionDao.update(profession);
	}
	
	@Override
	public void delete(String code){
		professionDao.delete(code);
	}
	
	@Override
	public void deleteBatch(String[] codes){
		professionDao.deleteBatch(codes);
	}

	@Override
	public List<ProfessionEntity> findAllProfession() {
		return professionDao.findAllProfession();
	}
	
}
